<%@page contentType="text/html" pageEncoding="UTF-8" import="java.io.*, java.sql.*, javax.sql.*"%>
<%

    String uid = (String) session.getAttribute("uid");
    String word = request.getParameter("word");
    String listName = request.getParameter("listName");
    if (word == null || uid == null || listName == null) {
        return;
    }


    Connection con = com.elookinto.wordlist.Util.getCon();

    PreparedStatement st = con.prepareStatement("Delete from wordlist where word = ? and uid =? and listname=?");
    st.setString(1, word);
    st.setString(2, uid);
    st.setString(3, listName);
    st.executeUpdate();
    st.close();
    con.close();
%>
